import api from "../utils/request";
const baseUrl = "/api/api/chat/apikey";
export function getChatApiKeyList(status) {
  return api.get(`${baseUrl}/list`, {
    params: {
      status: status
    }
  });
}

export function add(chatApiKeyAdd) {
  return api.post(`${baseUrl}/add`, chatApiKeyAdd);
}

export function upd(chatApiKeyUpd) {
  return api.post(`${baseUrl}/upd`, chatApiKeyUpd);
}

export function del(id) {
  return api.delete(`${baseUrl}/del`, {
    params: {
      id: id,
    },
  });
}

export function updStatus(id) {
  return api.get(`${baseUrl}/updStatus`, {
    params: {
      id: id
    },
  });
}